package com.ruoyi.pet.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 诊疗记录对象 pet_medical_record
 * 
 * @author 木有枝
 * @date 2025-04-13
 */
public class PetMedicalRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 诊疗记录唯一ID */
    private Long recordId;

    /** 关联的宠物ID（外键） */
    @Excel(name = "关联的宠物ID", readConverterExp = "外=键")
    private Long petId;

    /** 关联的医生ID（外键） */
    @Excel(name = "关联的医生ID", readConverterExp = "外=键")
    private Long doctorId;

    /** 诊断结果 */
    @Excel(name = "诊断结果")
    private String diagnosis;

    /** 治疗方案 */
    @Excel(name = "治疗方案")
    private String treatment;

    /** 诊疗日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "诊疗日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordDate;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }

    public void setPetId(Long petId) 
    {
        this.petId = petId;
    }

    public Long getPetId() 
    {
        return petId;
    }

    public void setDoctorId(Long doctorId) 
    {
        this.doctorId = doctorId;
    }

    public Long getDoctorId() 
    {
        return doctorId;
    }

    public void setDiagnosis(String diagnosis) 
    {
        this.diagnosis = diagnosis;
    }

    public String getDiagnosis() 
    {
        return diagnosis;
    }

    public void setTreatment(String treatment) 
    {
        this.treatment = treatment;
    }

    public String getTreatment() 
    {
        return treatment;
    }

    public void setRecordDate(Date recordDate) 
    {
        this.recordDate = recordDate;
    }

    public Date getRecordDate() 
    {
        return recordDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("petId", getPetId())
            .append("doctorId", getDoctorId())
            .append("diagnosis", getDiagnosis())
            .append("treatment", getTreatment())
            .append("recordDate", getRecordDate())
            .toString();
    }
}
